package cn.xy.ymcc.feign;

import cn.xy.ymcc.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value ="service-user",fallbackFactory = UserFeignClientFallBackFactory.class)

public interface UserFeignClient {

    @GetMapping("user/getPhone/{phone}")
    User getByPhone(@PathVariable("phone") String phone);
}

